class UrlMappings {
  static mappings = {
      "/" { 
        controller='login'
        action=[GET:'index', POST:'login']
      }
      "/upload" {
        controller='upload'
        action=[GET:'index', POST:'accept']
      }
      "/$controller/$action?/$id?"{
        constraints {
          // apply constraints here
        }
	    }
	    "500"(view:'/error')
  }
}
